package de.wittekind.bundesjugendspiele.dummy;

import java.io.IOException;
import java.rmi.server.UnicastRemoteObject;

import de.wittekind.bundesjugendspiele.server.interfaces.Discipline;
import de.wittekind.bundesjugendspiele.server.interfaces.Try;
import de.wittekind.bundesjugendspiele.server.interfaces.Unit;

public class DummyTry extends UnicastRemoteObject implements Try{

	private double value;
	private Unit unit;
	private Discipline discipline;
	
	public DummyTry() throws IOException
	{
		
	}

	@Override
	public double getValue() throws IOException {
		return value;
	}

	@Override
	public Unit getUnit() throws IOException {
		return unit;
	}

	@Override
	public Discipline getDiscipline() throws IOException {
		return discipline;
	}

	@Override
	public void setValue(double value) throws IOException {
		System.err.println("Value set on"+ value);
		this.value=value;
	}

	@Override
	public void setUnit(Unit unit) throws IOException {
		this.unit=unit;
	}

	@Override
	public void setDiscipline(Discipline discipline) throws IOException {
		this.discipline=discipline;
	}

	@Override
	public int getID() {
		// TODO Auto-generated method stub
		return 0;
	}
}
